var addBtn = document.querySelector('button');
var myClick = function () {
    console.log("按钮事件生效了");
};
addBtn.addEventListener('click', myClick);
var removeBtn = document.querySelectorAll('button')[1];
removeBtn.addEventListener('click', function () {
    addBtn.removeEventListener('click', myClick);
});
